package cn.kgc.client;

import cn.kgc.base.dto.LockStockDTO;
import cn.kgc.commons.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>添加描述信息</p>
 *
 * @author 卢传琪
 */
@Component
@Slf4j
public class WmsFeignClientImpl implements WmsFeignClient {
    @Override
    public Result<Boolean> lockStock(List<LockStockDTO> lockStockDTOList) {
        log.error("锁定库存,服务接口降级:{}",lockStockDTOList);
        return Result.error(null,"http://mall-wms/wms/wareSku/lockStock", HttpStatus.OK.value(),"error");
    }
}
